package cn.iocoder.yudao.module.scrm.controller.admin.schedules.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 排期新增/修改 Request VO")
@Data
public class SchedulesSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "25197")
    private Long id;

    @Schema(description = "排期名称", example = "李四")
    @NotNull(message = "排期名称不能为空")
    private String name;

    @Schema(description = "产品ID", example = "618")
    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern =FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern =FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND, timezone = TIME_ZONE_DEFAULT)
    private LocalDateTime endTime;

    @Schema(description = "地址")
    private String address;

    @Schema(description = "席位数量", example = "25910")
    @NotNull(message = "席位数量不能为空")
    private Integer seatCount;

    @Schema(description = "备注", example = "你猜")
    private String remark;

    @Schema(description = "状态", example = "1")
    private Integer status;

    @Schema(description = "老师", example = "[]")
    @NotEmpty(message = "老师不能为空")
    private List<PersonInfo> teacherList;

}